package com.bt.lms.ui.action.registration.stu;

import com.bt.lms.ui.page.common.action.pageenp.ApplyStuLabAction;
import com.bt.lms.ui.page.stu.PageMainStudentList;
import javafx.event.Event;
import javafx.event.EventHandler;
import javafx.scene.control.Alert;
import javafx.scene.layout.Pane;

/**
 * 录取学员信息界面不录取按钮
 */
public class PageEnrollNoEnrollBtnAction implements EventHandler {

    @Override

    public void handle(Event event) {
        //点击不录取返回主界面
        PageMainStudentList pageMainStudentList = new PageMainStudentList();
        Pane pane = ApplyStuLabAction.pageSkipInfo.getPane();
        Integer index = ApplyStuLabAction.pageSkipInfo.getIndex();
        pane.getChildren().set(index, pageMainStudentList);


        Alert alert = new Alert(Alert.AlertType.CONFIRMATION);
        alert.setContentText("确认不录取");
        alert.show();

    }
}
